package chen.videoedit;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;

/**
 * Created by 15705 on 2016/10/13.
 */

abstract class BasisActivity extends AppCompatActivity implements View.OnClickListener {


    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
        setContentView(setlayoutResID());
        initialView(arg0);
        setActivity();
    }

    /**
     * 布局文件
     */
    public abstract int setlayoutResID();

    /**
     * 初始化文件
     */
    public abstract void initialView(Bundle arg0);

    /**
     *事物处理
     */
    public abstract void setActivity();


    public void Toast(String s) {
        Toast.makeText(this, s, Toast.LENGTH_SHORT).show();
    }
}